{% extends "root/base.html" %}

{% block content %}

{% if results %}
<table class="people_list">
  <tr>
    {% for name in property_names %}
    <th>{{ name }}</th>
    {% endfor %}
    <th>More</th>
  </tr>
  {% for result in results %}
  <tr class="{% cycle alt1,alt2 %}">
    {% for value in result|to_list:property_keys %}<td>
      {{ value|property_print }}
    </td>{% endfor %}
    <td><a href="/people/view?key={{ result.key }}">Details</a></td>
  </tr>
  {% endfor %}
</table>
{% endif %}

<div class="result_count">{{ results|length }} entries found</div>

{% endblock %}
